import java.io.File;
import java.util.Arrays;

public class Demo3 {
    public static void main(String[] args) {
        File file=new File("Test-dir");
        String[] result=file.list();
        System.out.println(Arrays.toString(result));
        File[] result1=file.listFiles();
        System.out.println(Arrays.toString(result1));

    }
}
